using UnityEngine;
using System.Collections;
using System.Reflection;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System;
using System.Threading;
using System.Text;
using System.IO;
using UnityEngine.UI;
using UnityEngine.EventSystems;

public class ClickButtonTime : MonoBehaviour
{
    private Button clickButton;

    void Awake()
    {
        clickButton = this.gameObject.GetComponent<Button>();
    }

    public void DelayButtonClick(float time)
    {
        clickButton.interactable = false;
        Invoke("OpenButtonClick", time);
    }

    public void OpenButtonClick()
    {
        clickButton.interactable = true;
    }
}
